package a_obsolete;
import javax.swing.JPanel;
import java.awt.GridLayout;
import javax.swing.JInternalFrame;
import java.awt.FlowLayout;
import java.awt.BorderLayout;

/**
 * Doctor's Orders
 * Holds the information on the prescription, the frequency the medicine should be taken, the lab work performed, and the instruction
 *
 *
 *  Date           	Name            	Action
 *  --------------------------------------------------------------------------------------
 *	03/06/11		Zachary				Created Class, Made GUI
 *
 *
 *
 */


public class DoctorsOrders extends JPanel{
	private String prescriptionName;
	private String prescriptionFrequency;
	private String labWork;
	private String instructions;
	private Prescription prescription;
	
	/**
	 * Constructor for the class. 
	 * @param prescriptionName	The name of the prescription
	 * @param prescriptionFrequency How frequently the patient should take the prescription
	 * @param labWork The lab work done on the patient
	 * @param instructions The Doctor's instructions
	 */
	public DoctorsOrders(String prescriptionName, String prescriptionFrequency, String labWork, String instructions){
		this.instructions = instructions;
		this.labWork=labWork;
		this.prescriptionName=prescriptionName;
		this.prescriptionFrequency=prescriptionFrequency;
		this.prescription = new Prescription(this.prescriptionName);
		setLayout(new GridLayout(1, 0, 0, 0));
		
		JPanel panel = new JPanel();
		add(panel);
		panel.setLayout(new BorderLayout(0, 0));
	}

	/**
	 * Grabs the name of the prescription
	 * @return the name of the prescription
	 */
	public String getPrescriptionName() {
		return prescriptionName;
	}

	/**
	 * 
	 * @param prescriptionName
	 */
	public void setPrescriptionName(String prescriptionName) {
		this.prescriptionName = prescriptionName;
	}


	/**
	 * Setter for how often the user should be taking the medicine
	 * @return
	 */
	public String getPrescriptionFrequency() {
		return prescriptionFrequency;
	}

	/**
	 * Getter for string of how often the user should take the medicine	
	 * @param prescriptionFrequency
	 */
	public void setPrescriptionFrequency(String prescriptionFrequency) {
		this.prescriptionFrequency = prescriptionFrequency;
	}

	/**
	 * Getter for the lab work
	 * @return
	 */
	public String getLabWork() {
		return labWork;
	}
	
	
	/**
	 * Setter for the lab work. 
	 * @param labWork
	 */
	public void setLabWork(String labWork) {
		this.labWork = labWork;
	}

	/**
	 * Getter for the instructions
	 * @return
	 */
	public String getInstructions() {
		return instructions;
	}

	/**
	 * Setter for the string of instructions		
	 * @param instructions
	 */
	public void setInstructions(String instructions) {
		this.instructions = instructions;
	}

	/**
	 * Getter for the object prescript.  
	 * @return The prescription object
	 */
	public Prescription getPrescript() {
		return prescription;
	}

	/**
	 * Setter for the object prescript.  
	 * @param prescript The prescription object
	 */
	public void setPrescript(Prescription prescript) {
		this.prescription = prescript;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
